package com.upay.android.controller.policy;

import java.math.BigDecimal;

import com.upay.android.domain.payment.PaymentList;
import com.upay.android.domain.payment.WeightedPaymentDetail;
import com.upay.android.domain.user.User;

public class WeightedPaymentResultMappingPolicy extends AbstractResultMappingPolicy {

	/* ---- Constants ---- */
	
	/* ---- Instance Variables ---- */
	
	private PaymentList<WeightedPaymentDetail> paymentList = null;

	/* ---- Constructors ---- */
	
	public WeightedPaymentResultMappingPolicy(PaymentList<WeightedPaymentDetail> paymentList, User user) {
		this.paymentList = paymentList;
		this.user = user;
	}
		
	/* ---- Business Methods ---- */

	@Override
	public void mapResult(BigDecimal result) {
		paymentList.setTransactionValue(result);

	}
	
	/* ---- Getters and Setters ---- */
	
	public PaymentList<WeightedPaymentDetail> getPaymentList() {
		return paymentList;
	}

	public void setPaymentList(PaymentList<WeightedPaymentDetail> paymentList) {
		this.paymentList = paymentList;
	}
	
}
